package LeetCode.month02.day38;
import java.util.*;
public class No68 {
    public static void main(String[] args) {
        fullJustify(new String[]{"This", "is", "an", "example", "of", "text", "justification."},16);
    }
    public static List<String> fullJustify(String[] words, int maxWidth) {
        List<String> res = new ArrayList<>();
        Arrays.sort(words,(a,b)->a.length()-b.length());
        System.out.println(Arrays.toString(words));
        return res;
    }
}
